﻿// -----------------------------------------------------------------------
// <copyright file="Book.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Core.Entities.Library
{
	#region Usings

	using System;
	using System.Collections.Generic;

	using MBOP.Core.Entities.Common;

	#endregion

	/// <summary>
	/// Book's entity.
	/// </summary>
	public class Book
	{
		#region Properties

		/// <summary>
		/// Gets or sets the book id.
		/// </summary>
		public int ID { get; set; }
		
		/// <summary>
		/// Gets or sets the book title.
		/// </summary>
		public string Title { get; set; }
		
		/// <summary>
		/// Gets or sets the book authors.
		/// </summary>
		public string Authors { get; set; }
		
		/// <summary>
		/// Gets or sets the book description.
		/// </summary>
		public string Description { get; set; }
		
		/// <summary>
		/// Gets or sets international standard book number.
		/// </summary>
		public string ISBN { get; set; }
		
		/// <summary>
		/// Gets or sets the book european article number.
		/// </summary>
		public string EAN { get; set; }
		
		/// <summary>
		/// Gets or sets the image id.
		/// </summary>
		public string ImageID { get; set; }
		
		/// <summary>
		/// Gets or sets image of the book.
		/// </summary>
		public virtual Image Image { get; set; }
		
		/// <summary>
		/// Gets or sets the book subscriptions collection.
		/// </summary>
		public virtual ICollection<BookSubscription> Subscriptions { get; set; }
		
		/// <summary>
		/// Gets or sets the book owner id.
		/// </summary>
		public string OwnerID { get; set; }
		
		#endregion
	}
}
